Ext.onReady(function(){
			//windowst.show();
	
		});
		
		
		var gridss=Ext.create('Ext.grid.Panel',{
			columns:[
				{header:'(单别)', dataIndex:'tranType'},
				{header:'(日期)',dataIndex:'historyDate',width:100,},
				{header:'(单号)',dataIndex:'fromNo',width:120,},
				{ header: '(币别)', dataIndex: 'currID' },
				{ header: '(汇率)', dataIndex: 'exchRate' },
				{ header: '(物料编号)', dataIndex: 'prodID'},
				{ header: '(物料名称)', dataIndex: 'prdClassName' },
				{ header: '(规格型号)', dataIndex: 'prodSize' },
				{ header: '(数量)', dataIndex: 'quantity' },
				{ header: '(单位)', dataIndex: 'unit' },
				{ header: '(折扣前单价)', dataIndex: 'oldPrice' },
				{ header: '(折数%)', dataIndex: 'discount' },
				{ header: '(单价)', dataIndex: 'sPrice' },
				{ header: '(单价是否含税)', dataIndex: 'isTax' },
				{ header: '(金额)', dataIndex: 'amount' },
				{ header: '(备注)', dataIndex: 'remarks' },
			],
			height:260,
			width:1700,
			autoScroll:false,
		});
		
		//头部form表单
		var formss=Ext.create('Ext.form.Panel', {
    	bodyPadding: 5,
		height:'100%',
		layout:"column",
		baseCls:'x-plain',
		items:[
		{
		style:'margin-left:20px;',
		xtype: 'textfield',
        name: 'customerID',
        fieldLabel: '客户',
		width:250,
        labelWidth: 80,
        anchor: '100%',
		},{
		style:'margin-left:160px;',
		xtype: 'button',
        name: 'quhui',
        text: '取回',
//        handler : function() {
//        	alert(1212);
//        	alert(zhi) ; 
//        	},
		width:70,
        labelWidth: 80,
        anchor: '100%',
		},gridss]
    });
		
		//窗体大小
		var windowstz=new Ext.Window({
			width:620,
			height:350,
			title:"历史交易查询",
			closable:true,
			resizable:false, //设置是否可以改变大小
			draggable:true,
			anchor: '100%',
 			items:[formss],
		});